package com.dict.modules.utils;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 映射的key值
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Accessors(chain = true)
public class MapKey {
    public static final String OLD_NAM = "oldName";
    public static final String NEW_NAM = "newName";
    // 原key值不能为空
    private String oldName;
    // 新key值不能为空
    private String newName;
    // 层级非必须，传0或者不传值代表全局转换
    // 也支持指定level转换，从1开始
    private Integer level = null;
}